package com.punai.customer.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.punai.customer.domain.CusLinkFbFeature;
import com.punai.customer.mapper.CusLinkFbFeatureMapper;
import com.punai.customer.service.ICusLinkFbFeatureService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 分包费用项特征关联Service业务层处理
 *
 * @author zxw
 * @date 2022-12-09
 */
@Service
public class CusLinkFbFeatureServiceImpl extends ServiceImpl<CusLinkFbFeatureMapper, CusLinkFbFeature> implements ICusLinkFbFeatureService
{
    @Autowired
    private CusLinkFbFeatureMapper dmcLinkFbFeatureMapper;

    /**
     * 查询分包费用项特征关联
     *
     * @param id 分包费用项特征关联主键
     * @return 分包费用项特征关联
     */
    @Override
    public CusLinkFbFeature selectDmcLinkFbFeatureById(String id)
    {
        return dmcLinkFbFeatureMapper.selectDmcLinkFbFeatureById(id);
    }

    /**
     * 查询分包费用项特征关联列表
     *
     * @param dmcLinkFbFeature 分包费用项特征关联
     * @return 分包费用项特征关联
     */
    @Override
    public List<CusLinkFbFeature> selectDmcLinkFbFeatureList(CusLinkFbFeature dmcLinkFbFeature)
    {
        return dmcLinkFbFeatureMapper.selectDmcLinkFbFeatureList(dmcLinkFbFeature);
    }

    /**
     * 新增分包费用项特征关联
     *
     * @param dmcLinkFbFeature 分包费用项特征关联
     * @return 结果
     */
    @Override
    public int insertDmcLinkFbFeature(CusLinkFbFeature dmcLinkFbFeature)
    {
            return dmcLinkFbFeatureMapper.insert(dmcLinkFbFeature);
    }

    /**
     * 修改分包费用项特征关联
     *
     * @param dmcLinkFbFeature 分包费用项特征关联
     * @return 结果
     */
    @Override
    public int updateDmcLinkFbFeature(CusLinkFbFeature dmcLinkFbFeature)
    {
        return dmcLinkFbFeatureMapper.updateById(dmcLinkFbFeature);
    }

    /**
     * 批量删除分包费用项特征关联
     *
     * @param ids 需要删除的分包费用项特征关联主键
     * @return 结果
     */
    @Override
    public int deleteDmcLinkFbFeatureByIds(String[] ids)
    {
        return dmcLinkFbFeatureMapper.deleteDmcLinkFbFeatureByIds(ids);
    }

    /**
     * 删除分包费用项特征关联信息
     *
     * @param id 分包费用项特征关联主键
     * @return 结果
     */
    @Override
    public int deleteDmcLinkFbFeatureById(String id)
    {
        return dmcLinkFbFeatureMapper.deleteDmcLinkFbFeatureById(id);
    }
}
